﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace UserInterface.Views
{
    using Helpers;

    /// <summary>
    /// Interaction logic for SettlementInfo.xaml
    /// </summary>
    public partial class SettlementInfo : UserControl
    {
        public SettlementInfo(SettlementInfomation settlement)
        {
            InitializeComponent();
            this.SetContent(settlement);
        }
        private void SetContent(SettlementInfomation settlement)
        {
            this.Type.Content = settlement.Type;
            this.Income.Content = settlement.Income;
            this.Production.Content = settlement.Output;
            this.RoadLevel.Content = settlement.Road_Level;
            this.FactoryLevel.Content = settlement.Factory_Level;
            this.PlantLevel.Content = settlement.Plant_Level;
            this.VillageNumber.Content = settlement.Villages;
        }

    }
}
